package com.dilidili.service.impl;

import com.dilidili.mapper.VideoSharpnessMapper;
import com.dilidili.service.VideoSharpnessService;
import com.domain.Video;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author Miracle GuGuaGuGua
 * @Date 2022/4/1 15:29
 * @Version 1.0
 */
@Service
public class VideoSharpnessServiceImpl implements VideoSharpnessService {
    @Resource
    private VideoSharpnessMapper videoSharpnessMapper;

    @Override
    public void add(String str, int i, Long videoId) {
        videoSharpnessMapper.add(str,i,videoId);
    }

    @Override
    public void delByVideoId(Long videoId) {
        videoSharpnessMapper.delByVideoId(videoId);
    }

    @Override
    public List<Map> getByVideoId(Long vId) {
       return   videoSharpnessMapper.selectVideoTagByVideoId(vId);
    }


}
